package com.logan.uc.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Table(name = "uc_user", uniqueConstraints={@UniqueConstraint(columnNames={"username"})})
public class User extends BaseEntity implements Serializable {

    @Column(length = 16)
    private String username;

    @Column(length = 64)
    private String password;

    @Column(length = 16)
    private String nickName;

}
